package edu.hgnu.work;

import org.springframework.amqp.rabbit.annotation.Queue;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;


/**
 * @author:      zyl
 * @ReWroteBy:  Tara.Li(李春侣)
 * @date:  2021-08-09 21:08:52
 * @Description:  工作模型
 */
@Component
public class WorkCustomer {

    @RabbitListener(queuesToDeclare = @Queue("work"))
    public void receiver1(String msg){
        System.out.println("msg1="+msg);
    }

    @RabbitListener(queuesToDeclare = @Queue("work"))
    public void receiver2(String msg){
        System.out.println("msg2="+msg);
    }
}
